package com.zxx.xin.shorthand.app;

import android.app.Application;
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;

/**
 * Created by xin on 2018/3/17.
 */

public class BaseApp extends Application {

    private static HandlerThread sWorkThread = new HandlerThread("daily");
    static{
        sWorkThread.start();
    }

    private static Handler sWrokHandler = new Handler(sWorkThread.getLooper());
    private static Handler sMainHandler = new Handler(Looper.getMainLooper());

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        ApplicationHelper.init(base, sWrokHandler, sMainHandler);
    }
}
